#include "DriveWithJoysticksMec.h"

DriveWithJoysticksMec::DriveWithJoysticksMec() {
	// Use requires() here to declare subsystem dependencies
	// eg. requires(chassis);
    Requires(chassis);
}

// Called just before this Command runs the first time
void DriveWithJoysticksMec::Initialize() {
	
}

// Called repeatedly when this Command is scheduled to run
void DriveWithJoysticksMec::Execute() {
	double crouch = CommandBase::oi->getCrouch();
	chassis->driveWithJoysticksMec(oi->getRightStickY()*crouch, oi->getRightStickX()*crouch, 
			-oi->getLeftStickX()*crouch);	
}

// Make this return true when this Command no longer needs to run execute()
bool DriveWithJoysticksMec::IsFinished() {
	return false;
}

// Called once after isFinished returns true
void DriveWithJoysticksMec::End() {
	
}

// Called when another command which requires one or more of the same
// subsystems is scheduled to run
void DriveWithJoysticksMec::Interrupted() {
}
